<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/template/template.xhtml">
	<ui:define name="header">
		<div id="menu">
			<ul>
				<li><h:outputLink value="cliente.xhtml"><h:outputText value="#{msg.home}"/></h:outputLink></li>
				<li><h:outputLink value="lfilmes.xhtml"><h:outputText value="#{msg.lfimes}"/></h:outputLink></li>
				<li class="current_page_item"><h:outputLink value="lcategorias.xhtml"><h:outputText value="#{msg.lcategorias}"/></h:outputLink></li>
				<li><h:outputLink value="alterardp.xhtml"><h:outputText value="#{msg.alterardp}"/></h:outputLink></li>
				<li><h:commandLink action="#{LoginBean.sair}"><h:outputText value="#{msg.encerrar}"/></h:commandLink></li>
			</ul>
		</div>
	</ui:define>
	<ui:define name="content">
	    <div class="post">
		    <h2 class="title" style="text-align:center"><h:outputLink value="#">Acervo Digital de Filmes</h:outputLink></h2>
		    <h2 class="title" style="text-align:center"><h:outputLink value="#"><h:outputText value="#{msg.lcategorias}"/></h:outputLink></h2>
			<div class="entry">
			    <p style="text-align:center"><br />
					<p:dataTable value="#{CategoriaBean.listarCategorias}" var="categorias" style="width:200px;">
						<p:column>  
           					<f:facet name="header">  
                    			<h:outputText style="font-size:20px;" value="#{msg.categoria}"/> 
	  			            </f:facet>  
				            <h:outputText value="#{categorias.nome}" />  
        				</p:column>  
					</p:dataTable>
				</p>
		    </div>
		</div>
	</ui:define>
</ui:composition>
</html>